/**
 * @author hotab
 */
(function($) {
	$.fn.getStatFillInfo = function(formId, url, style){
		var arr = {};
		$("#"+formId+" button").each(function(index, element){
			arr["id"+$(this).val()] = $(this).attr('id');
		});
		
		$.post(url, arr, function(retData, status){
			for(var key in retData){
				var value = retData[key];
				if (value == 1){
					$('#'+key).attr("class", style);
				}
				else{
					$('#'+key).attr("class", "uncompleted");
				}
			}	
		});
	}
})(jQuery);